export default {
  state: {
    name:'',
    photo:'static/avatar.png',
    createTime:'',
    role:-1
  },
  mutations:{
    personalMes:(state,payload)=>{
      state.name = payload.name
      state.photo = payload.photo||'static/avatar.png'
      state.createTime = payload.createTime
      state.role = payload.role
    },
    updatePhoto:(state,payload)=>{
      state.photo = payload.photo||'static/avatar.png'
    }
  }  
}
